class counter:
    publiccount = globals()
    publiccount["pubcount"] = 0
    def __init__(self):
        self.publiccount["pubcount"] += 1
        print(self.publiccount["pubcount"])

counter_1 = counter()
counter_2 = counter()
counter_3 = counter()
